<template>
    <div>
        222222222
        <router-link :to="{name:'child1',query:{uid:2}}">传给1</router-link>
        <button @click="jump">传给3</button>
    </div>
</template>

<script>
    export default {
        name:'child2',
        methods:{
            jump(){
                this.$router.push({name:"child3",query:{uid:2}})
            }
        }
    }
</script>

<style scoped>

</style>